<?php

namespace Registro\Frontend\Controllers;

class IndexController extends ControllerBase
{

    public function indexAction()
    {

    }
    /**
     * Switch the application language and redirects to the current Url
     * 
     * @param string $lang
     * @param string $redirectUrl
     */
    public function switchlanguageAction( $lang = 'en-EN', $redirectUrl = '/' )
    {
        $this->session->language = $lang;
        $this->response->redirect( $redirectUrl );
    }
}